import java.io.PrintStream;
import java.util.ArrayList;
import java.util.Collection;

/**
 * Created with IntelliJ IDEA.
 * User: thoughtworker
 * Date: 10/10/13
 * Time: 8:18 PM
 * To change this template use File | Settings | File Templates.
 */
public class coachRepository {

    private Collection<Coach> listOfCoaches = new ArrayList<Coach>();
    private PrintStream printer;

    public coachRepository(PrintStream printer, Collection<Coach> listOfCoaches) {
        this.printer = printer;
        this.listOfCoaches = listOfCoaches;
    }

    public void displayInfoOfAllCoaches() {
        for(Coach coach : listOfCoaches) {
            coach.displayCoachInfo(printer);
        }
    }

}
